
class Human{
    private String name;
    private int age;
    private String sex;
    static int hight;

    public Human(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
    static void Gethight(){
        hight = 18;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void talk(){
        System.out.println(this.name + "正在说话.......");
    }

    public void eat(){
        System.out.println(this.name + "正在吃饭.........");
    }
}


class cat{
    String name;
    int age;

    public cat(String name, int age, String sex) {

        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    String sex;
}

public class test {
    public static void main(String[] args) {
        Human human1 = new Human("zhangsan",18,"男");
        human1.talk();
    }
}
